import { gameConfigHandle } from "js/config/gameConfig"
import { HangUpInfo } from "./playerModel"

export default class AdventureModel {
    //玩家冒险进度
    mapID: number
    floor: number//地图第几层
    mapProgress: any // {31000: 1, 32000: 3}
    autoSellState: boolean
    autoSellSet: any
    bosses:{}//BOSS楼层 {ID:floor,...}
    totalFloor: number
    newMapProgress: any // {31000: 1, 32000: 3}
    newMapID: number
    newFloor: number
    hangupInfo: HangUpInfo
    constructor(opts: any = {}) {
        this.mapID = opts.mapID || 100001
        this.floor = opts.floor || 1
        this.autoSellState = opts.autoSellState || false
        this.autoSellSet = opts.autoSellSet || {}  //{quality: 3, wuxing: 1}
        this.mapProgress = opts.mapProgress || {}
        this.bosses = opts.bosses || {}
        this.totalFloor = opts.totalFloor || 1
        this.newMapProgress = opts.newMapProgress || {}
        this.newMapID = opts.newMapID || null
        this.newFloor = opts.newFloor || null
        this.hangupInfo = opts.hangupInfo || new HangUpInfo({})
    }
}